package cn.edu.xust.Ro;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ItemNumRo implements Comparable<ItemNumRo> {

   String item;
   Integer count;


   @Override
   public int compareTo(ItemNumRo o) {
      return o.getCount()-this.count;
   }

}
